package com.itheima.service;

import com.itheima.dto.OrderSettingDto;
import com.itheima.vto.OrderSettingVto;

import java.text.ParseException;
import java.util.List;

public interface OrdersettingService {
    /**
     * 根据日期修改可预约人数
     * @param orderSettingDto
     * @return
     */
    boolean editNumberByOrderDate(OrderSettingDto orderSettingDto) throws ParseException;

    /**
     * 根据年月查询对应的预约设置信息
     * @param year
     * @param monthNumber
     * @return
     */
    List<OrderSettingVto> getOrderSettingByMonth(int year, int monthNumber);

    /**
     * 增加预约设置数据
     * @param list
     */
    void addData(List<OrderSettingDto> list);
}
